package com.partterns.strategy;


public class ZhaoYun {
    //赵云出场，根据诸葛亮的交代，依次拆开妙计
    public static void main(String[] args) {
        Context context;
        System.out.println("------刚刚到吴国，拆第一个------");
        context = new Context(new BackDoor());
        context.operator();
        System.out.println("\n\n\n");
        System.out.println("------刘备乐不思蜀了，拆第二个------");
        context = new Context(new GivenGreenLight());
        context.operator();
        System.out.println("\n\n\n");
        System.out.println("------孙权的小兵来了，拆第三个------");
        context = new Context(new BlockEnemy());
        context.operator();
        System.out.println("\n\n\n");

    }
}
